from django.apps import AppConfig
from .models import init_db


class FrameworkCoreConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'framework_core'

    def ready(self):
        init_db()  # 初始化数据库表
